<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-html"  prefix="html"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>助学信息</title>
<link href="CSS/Accessible_Design.css" rel="stylesheet" type="text/css" />    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	<script type="text/javascript" language="java">
 	 function selectid(object){
	  var namelist=document.getElementsByName('deleteJobId');
	  for(var i=0;i<namelist.length;i++)
		  {
		  var e=namelist[i];
		  e.checked=object.checked;
		  }
  }
 
 </script>
  </head>
  
  <body>
  
   	<html:form action="parttimedelete.do">
    <table  border="1" cellspacing="0" width="600">
    <tr>
	    <td align="center" colspan="6" ><font color="#000066" size="+3"  > 
	     助学岗位管理</font>
	    </td>
    </tr>
    <tr>
       <td  colspan="3">单位名称: 
       		<html:text property="company" ></html:text>  </td>
        <td colspan="2"> 工资: 
        	<html:text property="salary"></html:text> </td>
        <td  colspan="1">
			<html:submit value="查询" ></html:submit> 
         </td>
   	</tr>
  
   	<tr>
   	<td>
   	<html:checkbox property="partTime" onclick="selectid(this)">全选</html:checkbox>
   	</td>
       <td >单位名称
		</td>
        <td > 开始时间 </td>
        	
        <td>工作类型</td>
			
        <td >工资 </td>
       <td>修改 
       </td>
   	</tr>
   	<c:forEach items="${partTimeList}" var="partTime" >
     <tr>
     <td ><html:checkbox property="deleteJobId" value="${partTime.jobId}"></html:checkbox>
	 </td>
     
       <td >${partTime.company}</td>
        <td >${partTime.start} </td>
        <td> ${partTime.content}</td>
        <td > ${partTime.money} </td>
       <td><a href="selcetparttimebyib.do?jobId=${partTime.jobId}">修改</a>  
       </td>
   	</tr>   	
   	</c:forEach>
   	<tr> 
   	<td colspan="6">
   	<html:submit  value="删除"></html:submit> <a href="studriction/partTimeLease.jsp">发布</a> </td></tr> 
   	    <tr>
   	    <td colspan="6">
   	    <a href="parttimemag.do?pageNum=${firstPage}">首页</a>|<a href="parttimemag.do?pageNum=${proPage}">上一页</a>|<a href="parttimemag.do?pageNum=${nextPage}">下一页</a>|<a href="parttimemag.do?pageNum=${lastPage}">最后一页</a>
   	    </td>
   	    </tr>
   	</table>
	</html:form>
   	</body>
   	</html>
